<?php
/**
 * Created by PhpStorm.
 * User: Wodro
 * Date: 2019/9/28
 * Time: 12:04
 */

namespace api\controllers;

use common\Tools;
use wodrow\yii\rest\Controller;

class PublicController extends Controller
{
    /**
     * 测试
     * @desc
     * @return array
     * @return string say Holle World
     */
    public function actionTest()
    {
        // $this->onlyDataOut = true;
        // throw new ApiException(10000, "test");
        $date = Tools::toDate(YII_BT_MTIME);
        $x = "Holle World ({$date})";
        return $this->success("测试", [
            'say' => $x
        ]);
    }
}